<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      a {
        background-color: red;
      }
      a:visited {
        background-color: green;
      }
      a:hover {
        text-decoration: none;
      }
      a[href*='contact'] {
        text-decoration-color: pink;
      }
      a[href^='http'] {
        border: 1px solid blue;
      }
    </style>
  </head>
  <body>
    <ul>
      <li><a href="https://example.com">Link 1</a></li>
      <li><a href="http://example.com" title="Visit example.com">Link 2</a></li>
      <li><a href="/contact">Link 3</a></li>
      <li><a href="../contact/index.html">Link 4</a></li>
    </ul>
    <input type="text" />
  </body>
</html>
